<?php
$this->breadcrumbs=array(
	'Search Books',
);?>
<h1><?php echo $this->id . '/' . $this->action->id; ?></h1>

<p>
	You may change the content of this page by modifying
	the file <tt><?php echo __FILE__; ?></tt>.
</p>

<!--
<form action="/store/index.php/searchBooks/search" method="get">
	<input type="text" name="Search[searchingValue]" value="" size="size" maxlength="size" />
	<input type="submit" name="btnSearch" value="Search" />
</form>
-->

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'search-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array('validateOnSubmit'=>true),
)); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'searchingValue'); ?>
		<?php echo $form->textField($model,'searchingValue'); ?>
		<?php echo $form->error($model,'searchingValue'); ?>
		<?php echo CHtml::submitButton('Search Books'); ?>
	</div>	

<?php $this->endWidget(); ?>



<?php
	$this->widget('zii.widgets.grid.CGridView', array(
		'dataProvider'=>$dataProvider,
		'id'=>'id',
		'columns'=>array(
		'id',
		array(            // display 'author.username' using an expression
            'name'=>'title',
			'htmlOptions'=>array('style'=>'text-align: left'),
            'value'=>'$data->title',
        ),
        'author',
		'edition',
		'year',
		'ISBN',
		'note',
//		array('class'=>'CButtonColumn')
		)));
?>
